#!/bin/bash

# 批量停止nohup启动的Spring Boot进程
for pid in $(ps -ef | grep java | grep zzedu-admin | awk '{print $2}')
do
echo "Stopping process with pid $pid"
kill -15 $pid
done
echo "All Spring Boot processes have been stopped"
sleep 5